package com.woniuxy.boss.bossassembly.apiimpl;


import com.woniu.api.RepairRecordApi;
import com.woniu.form.RepairRecordForm;
import com.woniuxy.Result;
import com.woniuxy.boss.bossassembly.service.IBaRepairRecordService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;



/**
 * <p>
 * 故障记录表 前端控制器
 * </p>
 *
 * @author HDC
 * @since 2021-05-24
 */
@RestController
@RequestMapping("/bossassembly/ba-repair-record")
@Slf4j
public class BaRepairRecordController implements RepairRecordApi {
    @Autowired
    private IBaRepairRecordService repairRecordService;
    @Override
    public Result addRepairRecord(RepairRecordForm repairRecordForm) {
        log.info("新增维修记录{}",repairRecordForm.getRepairStatus());
        Integer integer = repairRecordService.addRepairRecord(repairRecordForm);
        log.info("返回的数字{}",integer);
        return Result.success("增加成功");
    }
}

